<!DOCTYPE html>
<!--v1.6.7.2 RDPROJECT-510 cx 2013-12-10 start  -->
<html>
<#include "../head.html">
<body>
<table class="mc">
    <tr>
        <td class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                     <#include "../report/left.html">
                </div>
            </div>
            <!--左侧导航---}-->
        </td>
        <td class="mc-m">
            <div class="navToggle"></div>
        </td>
        <td class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
           <#assign moduleName="各借款项目数据统计">
             <#include "banner.html">
            <!--面包屑导航---}-->
			<#if param?exists>
					<#if param.get("dotime1")?exists><#assign dotime1=param.get("dotime1")></#if>
					<#if param.get("dotime2")?exists><#assign dotime2=param.get("dotime2")></#if>
					<#if param.get("username")?exists><#assign username=param.get("username")></#if>
			</#if>
            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
            	<div class="toolbor-module export">
            		<input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
            	</div>	
            	<div class="toolbor-module search">
                   <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                </div>
                    <div class="toolbor-module search">
                        <div style="height:22px;line-height:22px;float:left;">类型：</div>
                       <div class="select-box" id="type">
                            <div class="tag-select">全部</div>
                            <ul class="tag-options">
                               <li data-value="100" <#if type==100 >data-selected="selected"</#if> class="open-selected">全部</li>
                               <li data-value="101" <#if type==101 >data-selected="selected"</#if>>秒还标</li>
                               <li data-value="102" <#if type==102 >data-selected="selected"</#if>>信用标</li>
                               <li data-value="103" <#if type==103 >data-selected="selected"</#if>>抵押标</li>
                               <li data-value="104" <#if type==104 >data-selected="selected"</#if>>净值标</li>
                               <li data-value="112" <#if type==112 >data-selected="selected"</#if>>担保标</li>
                               <li data-value="110" <#if type==110 >data-selected="selected"</#if>>流转标</li>
                            </ul>
                        </div>
                    </div>
                    <div class="toolbor-module search">
                        <div style="height:22px;line-height:22px;float:left;">发布时间：</div>
                        <input class="_search-value js-datetime" name="dotime1" id="dotime1"  value="${dotime1!}" size="15"/>
                        <div style="height:22px;line-height:22px;float:left;margin:0 8px;">到</div>
                        <input class="_search-value js-datetime" name="dotime2" id="dotime2"  value="${dotime2!}"  size="15"/>
                    </div>
                    <div class="toolbor-module search">
                        <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
                	</div>
                   
                </div>
                
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>借款人</td>
                            <td>借款标题</td>
                            <td>投标金额</td>
                            <td>借款期数（期）</td>
                            <td>成交分额</td>
                            <td>借款期限</td>
							<td>借款金额</td>
							<td>标种</td>
							<td>类型</td>
                            <td>发布时间</td>
                        </tr>
                        <#import "../../common/function.html" as func>
                            <#list list as item>
                                <tr class="s">
                                    <td>
                                        ${item.username!}
                                    </td>
                                    <td title="${item.name}" class="tal">
                                        <span style="color:#FF0000">【<@func.borrowTypeName item=item /> 】</span>
                                        ${item.name!}
                                    </td>
                                     <td>${item.tbMoney!}万元</a></td>
                                    <td>${item.order+1}/${item.time_limit}</td>
                                    <td><#if item.flow_money==0>0份<#else>${item.account_yes/item.flow_money}份</#if></td>
                                     <td><#if item.isday==1>${item.time_limit_day!"-"}天<#else>${item.time_limit!"-"}个月</#if></td>
                                    <td>${item.account!0}元</td>
                                   	<td><@func.borrowTypeName item=item /></td>
                                   	<td><#if item.isday==1>天标<#else>月标</#if></td>
                                    <td>${dateformat(item.addtime!)}</td>
                                </tr>
                            </#list>
                    </table>
                </form>

                <!--底部工具栏--{-->
               <div style="height:22px;line-height:22px;color:red;margin-left:12px; padding-top:10px;"></div>
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container">
                        <#import "../../common/page.html" as pager>
                            <@pager.pagination page=page url="/admin/newreport/allBorrowDataList.html" map=param style="style1" />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
               	var urls=window.location.href;
				var index=urls.indexOf("?");
				if(index>0){
				  urls=urls.substring(0,index);
				 }
				var xlsurl=urls+"?actionType=export";
                    function sousuo(){
                        var sou = "";
                        var username = $("#username").val();
                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                            sou += "&username="+username;
                        }
                        var type = $("#type").find(".open-selected").attr("data-value");
                        if (type!=null&&type!=""&&type!="undefine"){
                            sou += "&type="+type;
                        }
                        var dotime1 = $("#dotime1").val();
    					if (dotime1!=null&&dotime1!=""&&dotime1!="undefine"){
    						sou += "&dotime1="+dotime1;
    					}
    					var dotime2 = $("#dotime2").val();
    					if (dotime2!=null&&dotime2!=""&&dotime2!="undefine"){
    						sou += "&dotime2="+dotime2;
    					}
    					
    					location.href=urls+"?search=true"+sou;
                    }
                    function exportxls(){
                    	var num='${listsize}';
    					num=num.replace(",","");
						if(num>60000){
							alert("数据过多，请选择指定的发布时间进行数据查询导出！");
							return false;
						}
                   		var sou = "";
                        var username = $("#username").val();
                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
                            sou += "&username="+username;
                        }
                        var type = $("#type").find(".open-selected").attr("data-value");
                        if (type!=null&&type!=""&&type!="undefine"){
                            sou += "&type="+type;
                        }
                        var dotime1 = $("#dotime1").val();
     					if (dotime1!=null&&dotime1!=""&&dotime1!="undefine"){
     						sou += "&dotime1="+dotime1;
     					}
     					var dotime2 = $("#dotime2").val();
     					if (dotime2!=null&&dotime2!=""&&dotime2!="undefine"){
     						sou += "&dotime2="+dotime2;
     					}
     					if (sou!=""){
                        	location.href=xlsurl+sou;
                        }else{
                            location.href=xlsurl;
                        }
                    }
                </script>
            </div>

        </td>
    </tr>
    <tr>
        <!--尾部--{-->
        <td colspan="3" class="mc-b"><#include "../foot.html"></td>
        <!--尾部--}-->
    </tr>
</table>

</body>
</html>
<#include "../jsPage.html">
<!--v1.6.7.2 RDPROJECT-510 cx 2013-12-10 end  -->